package com.neu.service.impl;

import java.util.ArrayList;

import com.neu.dao.impl.RoomDao;
import com.neu.pojo.Room;

public class RoomService {
	private RoomDao roomDao = RoomDao.getInstance();
	
	private static RoomService roomService = new RoomService();
	private RoomService() {}
	public static RoomService getInstance() {
		return roomService;
	}
	
	public boolean add(Room room) {
		return this.roomDao.add(room);
	}
	
	public ArrayList<Room> list(){
		return this.roomDao.list();
	}
	
	public Room search(Room room) {
		return this.roomDao.search(room);
	}
	
	public boolean delete(Room room) {
		return this.roomDao.delete(room);
	}
	
	public boolean livein(Room room) {
		return this.roomDao.livein(room);
	}
	
	public boolean liveout(Room room) {
		return this.roomDao.liveout(room);
	}
	
//	public String showInfo(Room room) {
//		String s = "房间号:" +room.getLocation()+room.get
//		
//		
//		return s;
//	}
}
